﻿Public Class Results(Of T As BaseResult)
    Implements System.ComponentModel.IListSource

    <System.Xml.Serialization.XmlAttribute("numResults")>
    Public ResultCount As Integer

    <System.Xml.Serialization.XmlAttribute("totalResults")>
    Public TotalResults As Integer

    Public Property Items As T()

#Region " IListSource "

    Public ReadOnly Property ContainsListCollection As Boolean Implements System.ComponentModel.IListSource.ContainsListCollection
        Get
            Return False
        End Get
    End Property
    Public Function GetList() As System.Collections.IList Implements System.ComponentModel.IListSource.GetList
        Return Items.ToList
    End Function

#End Region
End Class
